(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.AdminBookEditModel = (function(_super) {

    __extends(AdminBookEditModel, _super);

    function AdminBookEditModel() {
      return AdminBookEditModel.__super__.constructor.apply(this, arguments);
    }

    AdminBookEditModel.prototype.defaults = {
      BookId: 0,
      FileName: '',
      Avatar: '',
      DateOfPublish: '',
      ShortContent: '',
      Name: '',
      Authors: '',
      Categories: '',
      UserId: 0,
      SuccessMessage: ''
    };

    AdminBookEditModel.prototype.url = function() {
      var url;
      url = SiteMap.Admin.Books.Edit + "?bookId=" + this.attributes.BookId;
      return encodeURI(url);
    };

    AdminBookEditModel.prototype.parse = function(response) {
      return {
        BookId: response.BookId,
        FileName: response.FileName,
        Avatar: response.Avatar,
        DateOfPublish: response.Date,
        ShortContent: response.ShortContent,
        Name: response.Name,
        Authors: response.Authors,
        Categories: response.Categories,
        UserId: response.UserId,
        SuccessMessage: response.SuccessMessage
      };
    };

    return AdminBookEditModel;

  })(Backbone.Model);

}).call(this);
